<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<xsl:apply-templates select="hibernate-mapping"></xsl:apply-templates>
	</xsl:template>

	<xsl:template match="hibernate-mapping">
		<hibernate-mappint package="">
			<class>
				<xsl:attribute name="name"><xsl:value-of
					name="//eneityClass/entity"></xsl:value-of></xsl:attribute>
				<xsl:attribute name="table"><xsl:value-of
					name="//eneityClass/entity"></xsl:value-of></xsl:attribute>
				<xsl:for-each select="//eneityClass/entity">
					<property>
						<xsl:attribute name="name"><xsl:value-of
							name="./attributeName"></xsl:value-of></xsl:attribute>
						<xsl:attribute name="column"><xsl:value-of
							name="./attributeName"></xsl:value-of></xsl:attribute>
					</property>
				
				</xsl:for-each>
			</class>
		</hibernate-mappint>

	</xsl:template>

</xsl:stylesheet>